home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6777 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: nmo.gtegsc.com!gtenmo1!dkarr
  2. From: dkarr@nmo.gtegsc.com (David Karr)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: SPARCompiler problem
  5. Date: 09 Feb 1996 12:11:27 -0800
  6. Organization: GTE NMO
  7. Sender: dkarr@cheetos.nmo.gtegsc.com
  8. Message-ID: <uyd97ouumo.fsf@cheetos.nmo.gtegsc.com>
  9. References: <311A8705.41C6@llnl.gov>
  10. Reply-To: dkarr@nmo.gtegsc.com
  11. NNTP-Posting-Host: cheetos.nmo.gtegsc.com
  12. In-reply-to: Mark Spruiell's message of Thu, 08 Feb 1996 15:28:05 -0800
  13.  
  14. >>>>> "Mark" == Mark Spruiell <mes@llnl.gov> writes:
  15. In article <311A8705.41C6@llnl.gov> Mark Spruiell <mes@llnl.gov> writes:
  16.  
  17.   Mark> I've encountered a discrepancy between two C++ compilers.  I'm using
  18.   Mark> both SPARCompiler C++ 4.0.1 on Solaris 2.4 and SGI C++ 3.2.1 on IRIX 5.2.
  19.   Mark> The code below illustrates what I'm trying to do.  Using an overloaded
  20.   Mark> operator new(), I get unexpected results when using SPARCompiler, and
  21.   Mark> the expected results with SGI C++.
  22.  
  23.   Mark> When this program is run on the Sun, the resulting output is
  24.  
  25.   Mark>   ** C++ new
  26.   Mark>   A constructor
  27.   Mark>   A constructor
  28.   Mark>   A constructor
  29.   Mark>   ** My new
  30.   Mark>   A constructor
  31.  
  32.   Mark> I was expecting to see three constructor messages after "My new", which
  33.   Mark> is what I get on the SGI.
  34.  
  35. Just for your information, using CenterLine C++, I get the behavior
  36. you get from the SGI.  It does seem like the SparcWorks behavior is
  37. incorrect.
  38.